{extend name="public:layout" /}

{block name="title"}
	<title>{:site('siteName')}-{$category}</title>
{/block}

{block name="css"}
	<link rel="stylesheet" type="text/css" href="__STATIC__/{$theme}/css/user.css">
	<link rel="stylesheet" href="__STATIC__/share/css/share.css" type="text/css" />
{/block}

{block name="content"}
	<div class="layui-main">
		<div class="user-main">
			<div class="user-left">
				{include file="public:user" index="<?php echo $index;?>" /}
			</div>
			<div class="user-right">
				<div class="layui-tab layui-tab-brief">
					<ul class="layui-tab-title">
						<li class="layui-this">{$category}</li>
					</ul>
					<div class="layui-tab-content">
						<table class="table">
						    <colgroup>
							    <col width="600">
							    <col width="100">
							    <col width="200">
							    <col width="100">
						    </colgroup>
						    <thead>
						        <tr>
						            <th>文章标题</th>
						            <th>浏览次数</th>
						            <th>发布时间</th>
						            <th>操作</th>
						        </tr>
						    </thead>
						    <tbody>
						    	{volist name="articles" id="v"}
						        <tr>
						            <td><a href="{:url('index/article/details',['id'=>$v['id'],'index'=>$index])}" title="{$v.title}">{$v.title}</a></td>
						            <td>{$v.click}</td>
						            <td>{:date('Y-m-d H:i:s',$v['update_time'])}</td>
						            <td><a href="{:url('index/article/details',['id'=>$v['id'],'index'=>$index])}" title="{$v.title}">查看</a></td>
						        </tr>
						        {/volist}
						    </tbody>
						</table>
						<div class="page">
							{$articles->render()}
						</div>
					</div>
				</div> 
			</div>
		</div>
	</div>
{/block}

{block name="script"}

{/block}